package cn.itcast.demo1;

public abstract class Animal {


    //成员变量：值可以发生改变
    String name="哈士奇";
    //成员常量：其值不能发生改变
    final int AGE=30;

    public abstract void eat();
    public abstract void sleep();

    //构造方法
    public Animal() {
    }

    public Animal(String name) {
        this.name = name;
    }

    public void call(){
        System.out.println("动物会叫");
    }

}
